<?php include ("inc/check_authen/check_authen.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" href="admin_css/template_admin.css" type="text/css" />
 <link rel="stylesheet" href="admin_css/product.css" type="text/css" />
 <script type="text/javascript" src="js/page_function/contacts.js"></script>
 <script type="text/javascript" src="../js/jquery.min.js"></script>
 <script type="text/javascript" src="../js/pagination.js"></script>

<title>Admin Page</title>
</head>
<body>
<?php
include('../inc/reuse/dbconfig.php');
$per_page = 20;
//getting number of rows and calculating no of pages
$sql = "SELECT contacts_id FROM contacts";
$rsd = mysql_query($sql);
$count = mysql_num_rows($rsd);
$pages = ceil($count/$per_page);
?>
<div class="container">
	<?php include("inc/layout/header/header.php");?>
    <?php include("inc/layout/navigator/navigator.php");?>
  	<div class="content">
  
  	<div id="product_catMain">
  		<div class="button_topic">ลูกค้าติดต่อผ่านเว็บ </div> 
  			<br/>
  			<br/>
		<div class="contactsContent"></div>				    		           			
		<table border="0">
			<tr>
				<td>
					<ul id="contentpagination" >
						<?php
						//Show page links
						for($i=1; $i<=$pages; $i++)
						{
							echo '<li id="'.$i.'">'.$i.'</li>';
						}
						?>
					</ul>	
				</td>
			</tr>
		</table>	
   	</div>   
    <!--end admin_index-->
   </div>
	<!-- end .content --> 
	<?php include("inc/layout/footer/footer.php");?>
</div>
 <!-- end .container -->
</body>
</html>